unicode-linebreak
Implementation of the Line Breaking Algorithm described in Unicode Standard Annex #14.
Given an input text, locates "line break opportunities", or positions appropriate for wrapping lines when displaying text.
Example
use ;
let text = "a b \nc";
assert!;
Development
After cloning the repository or modifying LineBreak.txt
the tables
have to be (re-)generated:
# Generate src/tables.rs
( && )
# Run tests to make sure it was successful